{extend name='index/index'/}
{block name="main"}
<style>
    .tab-content{
        box-shadow: 0 0 0;
    }

</style>

<div class="content">
    <div class="container">
        <div class="row">
            <div class="col-sm-12">
                <h4 class="pull-left page-title">{$title}</h4>
                <ol class="breadcrumb pull-right">
                    <li>{$title}</li>
                    <li class="active">{$name}</li>
                </ol>
            </div>
        </div>

        <div class="row">
            <div class="col-md-12">

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">{$name}</h3>
                    </div>
                    <div class="panel-body">
                        <div class="col-lg-12">
                            <form action="{:url('weixin/index')}"  target="frame" method="post" id="Add" style="margin-top: 20px">


                                    <div class="form-group clearfix">
                                        <label class="col-lg-1 control-label" for="token">token *</label>
                                        <div class="col-lg-7">

                                            <input class="form-control required" id="token" value="{$wx.token}" name="token" type="text" placeholder="token">
                                        </div>
                                        <div class="col-lg-4">
                                           *填写你设定的key
                                        </div>
                                    </div>
                                    <div class="form-group clearfix">
                                        <label class="col-lg-1 control-label" for="appid">appid *</label>
                                        <div class="col-lg-7">
                                            <input class="form-control " id="appid" name="appid" value="{$wx.appid}" type="text" placeholder="appid">
                                        </div>
                                        <div class="col-lg-4">
                                            *填写高级调用功能的app id, 请在微信开发模式后台查询
                                        </div>
                                    </div>
                                    <div class="form-group clearfix">
                                        <label class="col-lg-1 control-label" for="appsecret">appsecret </label>
                                        <div class="col-lg-7">
                                            <input class="form-control " id="appsecret" name="appsecret" value="{$wx.appsecret}" type="text" placeholder="appsecret">
                                        </div>
                                        <div class="col-lg-4">
                                            填写高级调用功能的密钥
                                        </div>
                                    </div>
                                    <div class="form-group clearfix">
                                        <label class="col-lg-1 control-label" for="encodingaeskey">encodingaeskey </label>
                                        <div class="col-lg-7">

                                            <input type="text" class="form-control required" name="encodingaeskey" id="encodingaeskey"  value="{$wx.encodingaeskey}"   placeholder="encodingaeskey">

                                        </div>
                                        <div class="col-lg-4">
                                            填写加密用的EncodingAESKey（可选，接口传输选择加密时必需）
                                        </div>
                                    </div>
                                    <div class="form-group clearfix">
                                        <label class="col-lg-1 control-label" for="mch_id">mch_id *</label>
                                        <div class="col-lg-7">

                                            <input type="text" id="mch_id" name="mch_id" class="form-control required" value="{$wx.mch_id}" placeholder="mch_id">


                                            </div>
                                        <div class="col-lg-4">
                                            微信支付，商户ID（可选）
                                        </div>
                                    </div>

                                    <div class="form-group clearfix">
                                        <label class="col-lg-1 control-label" for="mch_id">partnerkey *</label>
                                        <div class="col-lg-7">

                                            <input type="text" id="partnerkey" name="partnerkey" class="form-control required" value="{$wx.partnerkey}" placeholder="partnerkey">


                                        </div>
                                        <div class="col-lg-4">
                                            微信支付，密钥（可选）
                                        </div>
                                    </div>










                            <div class="form-group ">
                                <div class=" col-sm-9">
                                    <button type="submit" class="btn btn-info waves-effect waves-light">保存</button>
                                </div>
                            </div>
                            </form>

                        </div>


                    </div>  <!-- End panel-body -->
                </div> <!-- End panel -->

            </div> <!-- end col -->

        </div>

    </div>
</div>
<link href="__JS__/layui/css/layui.css" rel="stylesheet" type="text/css"/>
<script src="__JS__/layer/layer.js"></script>
<link href="__JS__/webuploader/webuploader.css" rel="stylesheet" type="text/css">
<script src="__JS__/webuploader/webuploader.js"></script>
<script src="__JS__/jquery-validation/dist/jquery.validate.min.js"></script>

<script>
//    $().ready(function() {
//
//        $("#Add").validate({
//
//            messages: {
//                good_name: "商品名称不能为空",
//                good_img:"商品图片不能为空",
//                mall_price:"商城价格不能为空",
//                dept_ids:"商品分类不能为空"
//            },
//            showErrors: function(errorMap, errorList) {
//
//                $.each(errorList, function (i, v) {
//
//                    layer.tips(v.message, v.element, {tips: [1, '#3595CC'], time: 2000 });
//                    return false;
//                });
//                onfocusout: false
//            }
//        });
//
//    });
//
//    $.validator.setDefaults({
//        submitHandler: function () {
//
//
//            $('#Add').submit();
//
//        }
//    });
//






</script>

{/block}